import http from "@/api";
/**
 * @name 登录模块
 */

//获取区号
export const listMobileAreaCode = () => {
	return http.post(`/listMobileAreaCode`);
};
//获取验证码
export const sendVerifyCode = (params: any) => {
	return http.post(`/sendVerifyCode`, params);
};
//获取验证码(登录后)
export const sendVerifyCodeEdit = (params: any) => {
	return http.post(`/user/sendVerifyCode`, params);
};
//原手机号检测
export const updatePhoneCheck = (params: any) => {
	return http.post(`/user/updatePhoneCheck`, params);
};
//更换手机号
export const updatePhone = (params: any) => {
	return http.post(`/user/updatePhone`, params);
};
//注册接口
export const register = (params: any) => {
	return http.post(`/register`, params);
};
//找回密码
export const forgetPassword = (params: any) => {
	return http.post(`/forgetPassword`, params);
};
/**
 * @name 仓库
 */
// * 获取集运仓库
export const listWarehouse = (params: any) => {
	return http.post(`/listWarehouse`, params);
};
/**
 * @name 地址
 */
export const countryAddressInfo = (params: any) => {
	return http.post(`/countryAddressInfo`, params, { headers: { noLoading: true } });
};
/**
 * @name 地址解析
 */
export const AddressCorrect = (params: any) => {
	return http.post(`/AddressCorrect`, params, { headers: { noLoading: true } });
};
/**
 * @name 地址解析new
 */
export const AddressCorrectNew = (params: any) => {
	return http.post(`/getAddressDetail`, params, { headers: { noLoading: true } });
};
/**
 * @name 用户信息
 */
export const getUserInfo = (params: any) => {
	return http.post(`/user/getUserInfo`, params);
};
/**
 * @name 寄件人默认地址
 */
export const sender = (params: any) => {
	return http.post(`/system/sender`, params);
};
/**
 * @name 生成补全订单模板
 */
export const downTemplate = (params: any) => {
	return http.download(`/order/downTemplate`, params);
};
